package com.zsl.picture.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 首页
 * @author zsl
 * @date 2022/1/19
 * @email 154777150@qq.com
 */
@Controller
@RequestMapping("/")
public class HomeController {
    @GetMapping
    public String home(Model model){
        model.addAttribute("home","这是首页");
        return "home";
    }
}
